package super02;

public class Worker extends Person{
/*
    由于父类里面也有姓名年龄，所以子类可以不用定义
    private String name;
    private int age;*/

    public Worker(String name, int age) {
        //super();
   /*     this.age = age;
        this.name = name;*/

        super(name, age);

    }


  /*  public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }*/
}
